package com.cpit.qualitycontrol.service;

import com.cpit.platform.common.entity.TableDataQueryCondition;
import com.cpit.platform.common.entity.TableJsonData;
import com.cpit.qualitycontrol.entity.DeviceType;

import java.util.List;

/**
 * Created by Hull on 2017/9/28.
 */
public interface DeviceTypeService {
    DeviceType findById(Long id);
    List<DeviceType> findAll();
    List<DeviceType> findByCondition(int page,
                               int size,
                               String order,
                               String orderBy,
                               String pattern);
    DeviceType create(DeviceType deviceType) throws Exception;
    DeviceType modify(DeviceType deviceType) throws Exception;
    void delete(DeviceType deviceType) throws Exception;
    void delete(Long id) throws Exception;
    @SuppressWarnings("rawtypes")
    TableJsonData findByConditionJqg(TableDataQueryCondition cond);
}
